Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

[Front] SpinBorderCheck #105

Merged
merged 1 commit into from
Feb 7, 2024
Merged

[Front] SpinBorderCheck #105

merged 1 commit into from
Feb 7, 2024

Conversation

Aloento
Copy link
Owner

@Aloento Aloento commented Feb 7, 2024

The most significant changes in the code involve the parsing of the value val from the SpinButton component and the conditions for returning early from functions. These changes were made in several files and functions, including Columns.tsx, useLimit.ts, index.tsx, Detail.tsx, New.tsx, and Quantity.tsx. Additionally, the useLimit function now returns an additional value, count, which is used in the ProductQuantity function.

Here are the changes in detail:

  1. In Columns.tsx, the parsing of val from the SpinButton component was updated. The early return condition in the onChange function was also updated to account for a disabled state and the current quantity of the item.
  2. The useLimit function in useLimit.ts was updated to return an additional value, count. The early return conditions were updated to include this new value.
  3. In index.tsx, the AdminOrder function was updated to change the condition for running a function based on the parsed value from a component.
  4. The lodash-es import was removed from Detail.tsx and New.tsx as it was no longer needed.
  5. The AdminProductComboDetail and AdminProductNewCombo functions in Detail.tsx and New.tsx respectively were updated to change the parsing of val from the SpinButton component and the condition for setting the stock state.
  6. The ProductQuantity function in Quantity.tsx was updated to use the new count value returned from the useLimit function and to change the parsing of val from the SpinButton component. The early return condition in the onChange function was also updated to account for this new value.

…alue `val` from the `SpinButton` component and the conditions for returning early from functions. These changes were made in several files and functions, including `Columns.tsx`, `useLimit.ts`, `index.tsx`, `Detail.tsx`, `New.tsx`, and `Quantity.tsx`. Additionally, the `useLimit` function now returns an additional value, `count`, which is used in the `ProductQuantity` function.

Here are the changes in detail:

1. In `Columns.tsx`, the parsing of `val` from the `SpinButton` component was updated. The early return condition in the `onChange` function was also updated to account for a disabled state and the current quantity of the item.
2. The `useLimit` function in `useLimit.ts` was updated to return an additional value, `count`. The early return conditions were updated to include this new value.
3. In `index.tsx`, the `AdminOrder` function was updated to change the condition for running a function based on the parsed value from a component.
4. The `lodash-es` import was removed from `Detail.tsx` and `New.tsx` as it was no longer needed.
5. The `AdminProductComboDetail` and `AdminProductNewCombo` functions in `Detail.tsx` and `New.tsx` respectively were updated to change the parsing of `val` from the `SpinButton` component and the condition for setting the stock state.
6. The `ProductQuantity` function in `Quantity.tsx` was updated to use the new `count` value returned from the `useLimit` function and to change the parsing of `val` from the `SpinButton` component. The early return condition in the `onChange` function was also updated to account for this new value.
@Aloento Aloento self-assigned this Feb 7, 2024
@Aloento Aloento merged commit 2c3841d into master Feb 7, 2024
1 check passed
@Aloento Aloento deleted the Dev branch February 7, 2024 20:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant